<!DOCTYPE html PUBLIC "-//W3C//DTD XHTML 1.0 Transitional//EN" "https://www.w3.org/TR/xhtml1/DTD/xhtml1-transitional.dtd">
<html xmlns="http://www.w3.org/1999/xhtml" lang="zh">
<head>
<meta http-equiv="Content-Type" content="text/xhtml;charset=UTF-8"/>
<meta http-equiv="X-UA-Compatible" content="IE=11"/>
<meta name="generator" content="Doxygen 1.9.5"/>
<meta name="viewport" content="width=device-width, initial-scale=1"/>
<title>SWM34S_LVGL7.11_SWMUI: C:/Users/DELL/Desktop/Commit/lvgl/SWM34S_LVGL7.11_SWMUI_20230515/APP/BSP/dev_crc.c 文件参考</title>
<link href="tabs.css" rel="stylesheet" type="text/css"/>
<script type="text/javascript" src="jquery.js"></script>
<script type="text/javascript" src="dynsections.js"></script>
<link href="doxygen.css" rel="stylesheet" type="text/css" />
</head>
<body>
<div id="top"><!-- do not remove this div, it is closed by doxygen! -->
<div id="titlearea">
<table cellspacing="0" cellpadding="0">
 <tbody>
 <tr id="projectrow">
  <td id="projectalign">
   <div id="projectname">SWM34S_LVGL7.11_SWMUI<span id="projectnumber">&#160;V7.9</span>
   </div>
  </td>
 </tr>
 </tbody>
</table>
</div>
<!-- end header part -->
<!-- 制作者 Doxygen 1.9.5 -->
<div id="nav-path" class="navpath">
  <ul>
<li class="navelem"><a class="el" href="dir_0ca16891106f5a3e9ad635a0d6c5f98f.html">APP</a></li><li class="navelem"><a class="el" href="dir_4ca18d753a70f6eada20fde478bd3fc8.html">BSP</a></li>  </ul>
</div>
</div><!-- top -->
<div class="header">
  <div class="summary">
<a href="#func-members">函数</a> &#124;
<a href="#var-members">变量</a>  </div>
  <div class="headertitle"><div class="title">dev_crc.c 文件参考</div></div>
</div><!--header-->
<div class="contents">

<p>硬件 CRC  
<a href="#details">更多...</a></p>
<div class="textblock"><code>#include &quot;<a class="el" href="dev__crc_8h_source.html">dev_crc.h</a>&quot;</code><br />
</div><div class="textblock"><div class="dynheader">
dev_crc.c 的引用(Include)关系图:</div>
<div class="dyncontent">
<div class="center"><img src="dev__crc_8c__incl.png" border="0" usemap="#a_c_1_2_users_2_d_e_l_l_2_desktop_2_commit_2lvgl_2_s_w_m34_s___l_v_g_l7_811___s_w_m_u_i__20230515_2_a_p_p_2_b_s_p_2dev__crc_8c" alt=""/></div>
<map name="a_c_1_2_users_2_d_e_l_l_2_desktop_2_commit_2lvgl_2_s_w_m34_s___l_v_g_l7_811___s_w_m_u_i__20230515_2_a_p_p_2_b_s_p_2dev__crc_8c" id="a_c_1_2_users_2_d_e_l_l_2_desktop_2_commit_2lvgl_2_s_w_m34_s___l_v_g_l7_811___s_w_m_u_i__20230515_2_a_p_p_2_b_s_p_2dev__crc_8c">
<area shape="rect" title="硬件 CRC" alt="" coords="5,5,264,60"/>
<area shape="rect" href="dev__crc_8h.html" title="硬件 CRC" alt="" coords="96,108,173,133"/>
<area shape="rect" title=" " alt="" coords="91,181,178,207"/>
</map>
</div>
</div>
<p><a href="dev__crc_8c_source.html">浏览源代码.</a></p>
<table class="memberdecls">
<tr class="heading"><td colspan="2"><h2 class="groupheader"><a id="func-members" name="func-members"></a>
函数</h2></td></tr>
<tr class="memitem:af9273c2c56ccb1b14946a43defe57f6b"><td class="memItemLeft" align="right" valign="top">void&#160;</td><td class="memItemRight" valign="bottom"><a class="el" href="dev__crc_8c.html#af9273c2c56ccb1b14946a43defe57f6b">crc_init</a> (void)</td></tr>
<tr class="memdesc:af9273c2c56ccb1b14946a43defe57f6b"><td class="mdescLeft">&#160;</td><td class="mdescRight">硬件 CRC 初始化  <a href="dev__crc_8c.html#af9273c2c56ccb1b14946a43defe57f6b">更多...</a><br /></td></tr>
<tr class="separator:af9273c2c56ccb1b14946a43defe57f6b"><td class="memSeparator" colspan="2">&#160;</td></tr>
<tr class="memitem:a64e0abe6c28e0480424c1e467afb7430"><td class="memItemLeft" align="right" valign="top">uint32_t&#160;</td><td class="memItemRight" valign="bottom"><a class="el" href="dev__crc_8c.html#a64e0abe6c28e0480424c1e467afb7430">get_crc32</a> (uint32_t data)</td></tr>
<tr class="memdesc:a64e0abe6c28e0480424c1e467afb7430"><td class="mdescLeft">&#160;</td><td class="mdescRight">计算 CRC32 校验和  <a href="dev__crc_8c.html#a64e0abe6c28e0480424c1e467afb7430">更多...</a><br /></td></tr>
<tr class="separator:a64e0abe6c28e0480424c1e467afb7430"><td class="memSeparator" colspan="2">&#160;</td></tr>
</table><table class="memberdecls">
<tr class="heading"><td colspan="2"><h2 class="groupheader"><a id="var-members" name="var-members"></a>
变量</h2></td></tr>
<tr class="memitem:a5637ce34d6452f02914d3be9e0f7ae50"><td class="memItemLeft" align="right" valign="top">static const uint32_t&#160;</td><td class="memItemRight" valign="bottom"><a class="el" href="dev__crc_8c.html#a5637ce34d6452f02914d3be9e0f7ae50">CRC_Init_Value</a> = 0xFFFFFFFF</td></tr>
<tr class="memdesc:a5637ce34d6452f02914d3be9e0f7ae50"><td class="mdescLeft">&#160;</td><td class="mdescRight">注意初值设定需要与用户外部计算器设置保持一致 0xFFFFFFFF or 0  <a href="dev__crc_8c.html#a5637ce34d6452f02914d3be9e0f7ae50">更多...</a><br /></td></tr>
<tr class="separator:a5637ce34d6452f02914d3be9e0f7ae50"><td class="memSeparator" colspan="2">&#160;</td></tr>
</table>
<a name="details" id="details"></a><h2 class="groupheader">详细描述</h2>
<div class="textblock"><p >硬件 CRC </p>
<p >/ </p><dl class="section since"><dt>自从</dt><dd>Change Logs: Date Author Notes 2022-12-08 lzh the first version </dd></dl>
<dl class="section remark"><dt>备注</dt><dd>/</dd></dl>
<dl class="section attention"><dt>注意</dt><dd></dd></dl>
<p>THE PRESENT FIRMWARE WHICH IS FOR GUIDANCE ONLY AIMS AT PROVIDING CUSTOMERS WITH CODING INFORMATION REGARDING THEIR PRODUCTS IN ORDER FOR THEM TO SAVE TIME. AS A RESULT, SYNWIT SHALL NOT BE HELD LIABLE FOR ANY DIRECT, INDIRECT OR CONSEQUENTIAL DAMAGES WITH RESPECT TO ANY CLAIMS ARISING FROM THE CONTENT OF SUCH FIRMWARE AND/OR THE USE MADE BY CUSTOMERS OF THE CODING INFORMATION CONTAINED HEREIN IN CONN- -ECTION WITH THEIR PRODUCTS.</p>
<dl class="section copyright"><dt>版权所有</dt><dd>2012 Synwit Technology </dd></dl>

<p class="definition">在文件 <a class="el" href="dev__crc_8c_source.html">dev_crc.c</a> 中定义.</p>
</div><h2 class="groupheader">函数说明</h2>
<a id="af9273c2c56ccb1b14946a43defe57f6b" name="af9273c2c56ccb1b14946a43defe57f6b"></a>
<h2 class="memtitle"><span class="permalink"><a href="#af9273c2c56ccb1b14946a43defe57f6b">&#9670;&#160;</a></span>crc_init()</h2>

<div class="memitem">
<div class="memproto">
      <table class="memname">
        <tr>
          <td class="memname">void crc_init </td>
          <td>(</td>
          <td class="paramtype">void&#160;</td>
          <td class="paramname"></td><td>)</td>
          <td></td>
        </tr>
      </table>
</div><div class="memdoc">

<p>硬件 CRC 初始化 </p>
<dl class="section note"><dt>注解</dt><dd>CRC 校验配置为 CRC32, 宽度:32bit 多项式:04C11DB7 初始值:0xFFFFFFFF 结果异或值:0x00000000 输入反转:false 输出反转:false </dd></dl>

<p class="definition">在文件 <a class="el" href="dev__crc_8c_source.html">dev_crc.c</a> 第 <a class="el" href="dev__crc_8c_source.html#l00031">31</a> 行定义.</p>
<div class="dynheader">
这是这个函数的调用关系图:</div>
<div class="dyncontent">
<div class="center"><img src="dev__crc_8c_af9273c2c56ccb1b14946a43defe57f6b_icgraph.png" border="0" usemap="#adev__crc_8c_af9273c2c56ccb1b14946a43defe57f6b_icgraph" alt=""/></div>
<map name="adev__crc_8c_af9273c2c56ccb1b14946a43defe57f6b_icgraph" id="adev__crc_8c_af9273c2c56ccb1b14946a43defe57f6b_icgraph">
<area shape="rect" title="硬件 CRC 初始化" alt="" coords="224,31,288,56"/>
<area shape="rect" href="bsp__init_8c.html#ac1d41f544770121f1cb61aeb64e5807e" title="初始化所有的硬件设备, 该函数配置CPU寄存器和外设的寄存器并初始化一些全局变量(只需要调用一次)" alt="" coords="107,5,173,31"/>
<area shape="rect" href="userboot_8c.html#a5d51bf8d3184d1c34b5fde41d69b1559" title="UserBoot 功能" alt="" coords="104,55,176,80"/>
<area shape="rect" href="main_8c.html#a840291bc02cba5474a4cb46a9b9566fe" title="C_Main" alt="" coords="5,31,56,56"/>
</map>
</div>

</div>
</div>
<a id="a64e0abe6c28e0480424c1e467afb7430" name="a64e0abe6c28e0480424c1e467afb7430"></a>
<h2 class="memtitle"><span class="permalink"><a href="#a64e0abe6c28e0480424c1e467afb7430">&#9670;&#160;</a></span>get_crc32()</h2>

<div class="memitem">
<div class="memproto">
      <table class="memname">
        <tr>
          <td class="memname">uint32_t get_crc32 </td>
          <td>(</td>
          <td class="paramtype">uint32_t&#160;</td>
          <td class="paramname"><em>data</em></td><td>)</td>
          <td></td>
        </tr>
      </table>
</div><div class="memdoc">

<p>计算 CRC32 校验和 </p>
<dl class="params"><dt>参数</dt><dd>
  <table class="params">
    <tr><td class="paramname">data</td><td>: 数据源 </td></tr>
  </table>
  </dd>
</dl>
<dl class="retval"><dt>返回值</dt><dd>
  <table class="retval">
    <tr><td class="paramname">crc</td><td>: 校验和 </td></tr>
  </table>
  </dd>
</dl>

<p class="definition">在文件 <a class="el" href="dev__crc_8c_source.html">dev_crc.c</a> 第 <a class="el" href="dev__crc_8c_source.html#l00057">57</a> 行定义.</p>
<div class="dynheader">
这是这个函数的调用关系图:</div>
<div class="dyncontent">
<div class="center"><img src="dev__crc_8c_a64e0abe6c28e0480424c1e467afb7430_icgraph.png" border="0" usemap="#adev__crc_8c_a64e0abe6c28e0480424c1e467afb7430_icgraph" alt=""/></div>
<map name="adev__crc_8c_a64e0abe6c28e0480424c1e467afb7430_icgraph" id="adev__crc_8c_a64e0abe6c28e0480424c1e467afb7430_icgraph">
<area shape="rect" title="计算 CRC32 校验和" alt="" coords="960,81,1039,107"/>
<area shape="rect" href="userboot_8c.html#aeeea4715dd32a4a4ecdf61a2869d1307" title="计算 CRC 校验和" alt="" coords="813,81,912,107"/>
<area shape="rect" href="userboot_8c.html#a43be464e9071b97862e51b2273afd856" title="固件备份 (Chip&#45;Flash&lt;运行区&gt; =&gt; 本地存储&lt;备份区&gt;)" alt="" coords="641,5,759,31"/>
<area shape="rect" href="userboot_8c.html#a5d51bf8d3184d1c34b5fde41d69b1559" title="UserBoot 功能" alt="" coords="503,105,575,131"/>
<area shape="rect" href="userboot_8c.html#a759a4106353e92e06e9d15926228c576" title="固件下载 (外部 =&gt; 本地)" alt="" coords="635,156,765,181"/>
<area shape="rect" href="userboot_8c.html#ae1cbf84771d87b5530710ae6852bd827" title="固件更新 (本地存储&lt;备份区&gt; =&gt; Chip&#45;Flash&lt;运行区&gt;)" alt="" coords="642,107,758,132"/>
<area shape="rect" href="main_8c.html#a840291bc02cba5474a4cb46a9b9566fe" title="C_Main" alt="" coords="5,131,56,156"/>
<area shape="rect" href="ui__update_8c.html#a3dbd73c82f05a5370635333b5ed68aea" title="点击不同的按钮后, 由此函数执行对应动作" alt="" coords="492,156,587,181"/>
<area shape="rect" href="ui__update_8c.html#a4b62aef18e10709cce125faee1b7dd52" title="文件管理器" alt="" coords="353,156,444,181"/>
<area shape="rect" href="ui__update_8c.html#aea66c53fcc188fefaa3470555db6aa05" title="启动 UI 引导加载界面, 挂载文件系统以实现 UI 素材导入/更新" alt="" coords="227,156,305,181"/>
<area shape="rect" href="main_8c.html#a8f1efe6291a27ae9b326f0c8a236c102" title="Go to User App Execute" alt="" coords="104,156,179,181"/>
</map>
</div>

</div>
</div>
<h2 class="groupheader">变量说明</h2>
<a id="a5637ce34d6452f02914d3be9e0f7ae50" name="a5637ce34d6452f02914d3be9e0f7ae50"></a>
<h2 class="memtitle"><span class="permalink"><a href="#a5637ce34d6452f02914d3be9e0f7ae50">&#9670;&#160;</a></span>CRC_Init_Value</h2>

<div class="memitem">
<div class="memproto">
<table class="mlabels">
  <tr>
  <td class="mlabels-left">
      <table class="memname">
        <tr>
          <td class="memname">const uint32_t CRC_Init_Value = 0xFFFFFFFF</td>
        </tr>
      </table>
  </td>
  <td class="mlabels-right">
<span class="mlabels"><span class="mlabel">static</span></span>  </td>
  </tr>
</table>
</div><div class="memdoc">

<p>注意初值设定需要与用户外部计算器设置保持一致 0xFFFFFFFF or 0 </p>

<p class="definition">在文件 <a class="el" href="dev__crc_8c_source.html">dev_crc.c</a> 第 <a class="el" href="dev__crc_8c_source.html#l00025">25</a> 行定义.</p>

</div>
</div>
</div><!-- contents -->
<!-- start footer part -->
<hr class="footer"/><address class="footer"><small>
制作者&#160;<a href="https://www.doxygen.org/index.html"><img class="footer" src="doxygen.svg" width="104" height="31" alt="doxygen"/></a> 1.9.5
</small></address>
</body>
</html>
